import os
from PyQt4 import uic, QtCore, QtGui

global uicFile
global pyFile

uiFile = None
pyFile = None

uiFileName = 'oySetProject.ui'

uiFilePath = '/home/ozgur/maya/scripts/oy-maya-scripts/oyTools/'

pyFileName = os.path.splitext(uiFileName)[0] + '_UI.py'

uiFile = file(os.path.join( uiFilePath, uiFileName ) )
pyFile = file(os.path.join( uiFilePath, pyFileName ),'w')
uic.compileUi( uiFile, pyFile )
uiFile.close()
pyFile.close()
